<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Custom_View_Helper_SearchForm extends Zend_View_Helper_Abstract
{
	public function searchForm( $defaultValue, $searcText = null )
	{
		$searchText = ($searcText)?$searcText:$this->view->searchKey;

		$form = "<form action='' method='post' name='frmSearch' id='frmSearch'>";
		$form .= "<input type='text' class='text default-value' name='search' id='search'";
		$form .= "value='".$searchText."' rel='".$defaultValue."'/>";
		$form .= "</form>";
		
		return $form;
	}
}
?>
